<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Date日期对象的创建方式</title>
    
</head>
<body>
    <script type="text/javascript">
        // UTC 
        // Date日期对象
        var now = new Date();
        console.log(now);
        // var htmlStr = '<h1>' + now + '</h1>';
        // document.write(htmlStr);

        var xmas = new Date('December 25,1995 13:30:00');
        var xmas = new Date(1995,11,25);
        var xmas = new Date(1995,11,25,13,30,0);
        console.log(xmas);
    </script>
</body>
</html>